package com.sharemarking.application.common.entity;


import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;


import com.sharemarking.application.common.BaseEntity;

@Entity
@Table(name="sys_comment")
public class Comment extends BaseEntity{

	
	
	private Integer topic_id;//主题id
	private String content;
	
	@OneToOne
	@JoinColumn(name="from_uid")//评论用户id
	private Employee fromemployee;
	
	@OneToOne
	@JoinColumn(name="to_uid")//评论目标用户id
	private Employee toemployee;
	
	private Timestamp starttime;//创建时间
	
	private String state;//是否为已阅的状态（0为未阅状态，1为已阅状态）
	
	
	
	public Integer getTopic_id() {
		return topic_id;
	}
	public void setTopic_id(Integer topic_id) {
		this.topic_id = topic_id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public Employee getFromemployee() {
		return fromemployee;
	}
	public void setFromemployee(Employee fromemployee) {
		this.fromemployee = fromemployee;
	}
	public Employee getToemployee() {
		return toemployee;
	}
	public void setToemployee(Employee toemployee) {
		this.toemployee = toemployee;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Timestamp getStarttime() {
		return starttime;
	}
	public void setStarttime(Timestamp starttime) {
		this.starttime = starttime;
	}
	

}
